package com.appbase.custom.base;

import android.os.Parcel;
import android.os.Parcelable;

public class AppVersionBean implements Parcelable {
    private String  version_code;
    private  int version_no;
    private  String  update_time;
    private  String download_link;
    private  int  forced_upgrade;
    private String alert_msg;
    private String MD5;

    protected AppVersionBean(Parcel in) {
        version_code = in.readString();
        version_no = in.readInt();
        update_time = in.readString();
        download_link = in.readString();
        forced_upgrade = in.readInt();
        alert_msg = in.readString();
        MD5 = in.readString();
    }

    public String getAlert_msg() {
        return alert_msg;
    }

    public void setAlert_msg(String alert_msg) {
        this.alert_msg = alert_msg;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(version_code);
        dest.writeInt(version_no);
        dest.writeString(update_time);
        dest.writeString(download_link);
        dest.writeInt(forced_upgrade);
        dest.writeString(alert_msg);
        dest.writeString(MD5);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<AppVersionBean> CREATOR = new Creator<AppVersionBean>() {
        @Override
        public AppVersionBean createFromParcel(Parcel in) {
            return new AppVersionBean(in);
        }

        @Override
        public AppVersionBean[] newArray(int size) {
            return new AppVersionBean[size];
        }
    };

    public String getVersion_code() {
        return version_code;
    }

    public void setVersion_code(String version_code) {
        this.version_code = version_code;
    }

    public int getVersion_no() {
        return version_no;
    }

    public void setVersion_no(int version_no) {
        this.version_no = version_no;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getDownload_link() {
        return download_link;
    }

    public String getMD5(){
        return MD5;
    }

    public void setMD5(String MD5) {
        this.MD5 = MD5;
    }

    public void setDownload_link(String download_link) {
        this.download_link = download_link;
    }

    public int getForced_upgrade() {
        return forced_upgrade;
    }

    public void setForced_upgrade(int forced_upgrade) {
        this.forced_upgrade = forced_upgrade;
    }

    @Override
    public String toString() {
        return "AppVersionBean{" +
                "version_code='" + version_code + '\'' +
                ", version_no=" + version_no +
                ", update_time='" + update_time + '\'' +
                ", download_link='" + download_link + '\'' +
                ", forced_upgrade=" + forced_upgrade +
                ", alert_msg='" + alert_msg + '\'' +
                ", MD5='" + MD5 + '\'' +
                '}';
    }
}
